home *** CD-ROM | disk | FTP | other *** search
/ Together in Jesus: 1st Reconciliation Computer Fun / Together in Jesus - First Reconciliation - Computer Fun.iso / euch5.swf / scripts / frame_10 / DoAction.as
Text File  |  2007-11-18  |  1KB  |  46 lines

  1. this.thanks_mc.onPress = function()
  2. {
  3.    this.startDrag();
  4. };
  5. this.thanks_mc.onRelease = function()
  6. {
  7.    this.stopDrag();
  8.    if(this.hitTest(target2b_mc) == true)
  9.    {
  10.       soundCheering2.start();
  11.       gotoAndStop(11);
  12.       tryagain_mc._visible = false;
  13.    }
  14.    else
  15.    {
  16.       thanks_mc._y = thankstarget_mc._y;
  17.       thanks_mc._x = thankstarget_mc._x;
  18.       tryagain_mc._visible = true;
  19.       soundMournfultrumpet.start();
  20.    }
  21. };
  22. this.songs_mc.onPress = function()
  23. {
  24.    this.startDrag();
  25. };
  26. this.songs_mc.onRelease = function()
  27. {
  28.    this.stopDrag();
  29.    songs_mc._y = songstarget_mc._y;
  30.    songs_mc._x = songstarget_mc._x;
  31.    tryagain_mc._visible = true;
  32.    soundMournfultrumpet.start();
  33. };
  34. this.words_mc.onPress = function()
  35. {
  36.    this.startDrag();
  37. };
  38. this.words_mc.onRelease = function()
  39. {
  40.    this.stopDrag();
  41.    words_mc._y = wordstarget_mc._y;
  42.    words_mc._x = wordstarget_mc._x;
  43.    tryagain_mc._visible = true;
  44.    soundMournfultrumpet.start();
  45. };
  46.